package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @version 1.0.0
 * @program:sky-take-out
 * @author: CaoYuWei
 * @create:2023-02-08 09:09:00
 **/
@Mapper
public interface DishFlavorMapper {
    /**
     * 批量插入口味数据
     * @param flavors
     */
    public void insertBatch(List<DishFlavor> flavors);

    /**
     * 根据菜品id删除
     * @param dishId
     */
    void deleteByDishId(Long dishId);

    /**
     * 根据id进行查询菜品 展示口味
     * @param dishId
     * @return
     */
    List<DishFlavor> getByDishId(Long dishId);
}